package org.eclipse.moquette.spi.impl;

import com.lmax.disruptor.EventFactory;
import org.eclipse.moquette.spi.impl.events.MessagingEvent;

/**
 * 用于在disruptor中进行事件消息(携带数据)的传递
 * Created by alex on 15-5-30.
 */
public final class ValueEvent {

    private MessagingEvent m_event;

    public MessagingEvent getEvent() {
        return m_event;
    }

    public void setEvent(MessagingEvent event) {
        m_event = event;
    }

    /**
     *
     */
    public final static EventFactory<ValueEvent> EVENT_FACTORY = new EventFactory<ValueEvent>() {
        @Override
        public ValueEvent newInstance() {
            return new ValueEvent();
        }
    };
}
